package com.ruoyi.medical.clinic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医务室信息对象 sys_clinic
 * 
 * @author wad
 * @date 2022-04-06
 */
public class Clinic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 医务室id */
    private Long clinicId;

    /** 科室名 */
    @Excel(name = "科室名")
    private String clinicName;

    /** 当班医生id */
    @Excel(name = "当班医生id")
    private Long doctorId;

    /** 当班医生姓名 */
    @Excel(name = "当班医生姓名")
    private String doctorName;

    /** 启用情况(0正常 1关闭 2维修) */
    @Excel(name = "启用情况(0正常 1关闭 2维修)")
    private String startStatus;

    /** 开放时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "开放时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date openTime;

    /** 关闭时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    @Excel(name = "关闭时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;

    public void setClinicId(Long clinicId) 
    {
        this.clinicId = clinicId;
    }

    public Long getClinicId() 
    {
        return clinicId;
    }
    public void setClinicName(String clinicName) 
    {
        this.clinicName = clinicName;
    }

    public String getClinicName() 
    {
        return clinicName;
    }
    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setDoctorName(String doctorName) 
    {
        this.doctorName = doctorName;
    }

    public String getDoctorName() 
    {
        return doctorName;
    }
    public void setStartStatus(String startStatus) 
    {
        this.startStatus = startStatus;
    }

    public String getStartStatus() 
    {
        return startStatus;
    }
    public void setOpenTime(Date openTime)
    {
        this.openTime = openTime;
    }

    public Date getOpenTime()
    {
        return openTime;
    }
    public void setCloseTime(Date closeTime)
    {
        this.closeTime = closeTime;
    }

    public Date getCloseTime()
    {
        return closeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("clinicId", getClinicId())
            .append("clinicName", getClinicName())
            .append("doctorId", getDoctorId())
            .append("doctorName", getDoctorName())
            .append("startStatus", getStartStatus())
            .append("openTime", getOpenTime())
            .append("closeTime", getCloseTime())
            .toString();
    }
}
